package com.fr.model;

public class Service {
	private int service_id;
    private String subject;
    private String photo;
    private String coverpath;
    private int price;
    private String message;
    private String recommend;
    private String detail;
    private Coach coach_id;
    private ServiceType serviceType_id;
    
	public Service() {
		super();
	}
	
	public Service(int service_id) {
		super();
		this.service_id = service_id;
	}

	public Service(int service_id, String subject, String photo, String coverpath, int price, String message,
			String recommend, String detail, Coach coach_id, ServiceType serviceType_id) {
		super();
		this.service_id = service_id;
		this.subject = subject;
		this.photo = photo;
		this.coverpath = coverpath;
		this.price = price;
		this.message = message;
		this.recommend = recommend;
		this.detail = detail;
		this.coach_id = coach_id;
		this.serviceType_id = serviceType_id;
	}

	@Override
	public String toString() {
		return "Service [service_id=" + service_id + ", subject=" + subject + ", photo=" + photo + ", coverpath="
				+ coverpath + ", price=" + price + ", message=" + message + ", recommend=" + recommend + ", detail="
				+ detail + ", coach_id=" + coach_id + ", serviceType_id=" + serviceType_id + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((coach_id == null) ? 0 : coach_id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Service other = (Service) obj;
		if (coach_id == null) {
			if (other.coach_id != null)
				return false;
		} else if (!coach_id.equals(other.coach_id))
			return false;
		return true;
	}

	public int getService_id() {
		return service_id;
	}

	public void setService_id(int service_id) {
		this.service_id = service_id;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public String getCoverpath() {
		return coverpath;
	}

	public void setCoverpath(String coverpath) {
		this.coverpath = coverpath;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getRecommend() {
		return recommend;
	}

	public void setRecommend(String recommend) {
		this.recommend = recommend;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public Coach getCoach_id() {
		return coach_id;
	}

	public void setCoach_id(Coach coach_id) {
		this.coach_id = coach_id;
	}

	public ServiceType getServiceType_id() {
		return serviceType_id;
	}

	public void setServiceType_id(ServiceType serviceType_id) {
		this.serviceType_id = serviceType_id;
	}
}